package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 关联订单
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_wallet_refund_apply_order")
public class UserWalletRefundApplyOrder extends Model<UserWalletRefundApplyOrder> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "refund_id", type = IdType.ASSIGN_ID)
    private String refundId;
    /**
     * 实际支付金额
     */
    @TableField("pay_amount")
    private BigDecimal payAmount;
    /**
     * 退款金额
     */
    @TableField("refund_amount")
    private BigDecimal refundAmount;
    /**
     * 退款状态:0退款中1退款成功2退款失败
     */
    @TableField("refund_status")
    private Integer refundStatus;
    /**
     * 申请ID
     */
    @TableField("request_id")
    private String requestId;
    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;

    public void freeData() {
        this.refundId = null;
        this.payAmount = null;
        this.refundAmount = null;
        this.refundStatus = null;
        this.requestId = null;
        this.orderId = null;
    }

}
